/**
 * 路由入口
 * @author
 */
import { createRouter, createWebHashHistory } from 'vue-router'
import routes from './routes'
import createRouteGuard from './guard'
const router = createRouter({
  scrollBehavior(/* to, from, savedPosition */) {
    return { top: 0 }
  },
  history: createWebHashHistory(process.env.BASE_URL),
  routes: routes,
})

createRouteGuard(router)

export default router
